package site.wanjiahao.session;
import io.netty.channel.Channel;

public interface Session {

    void bind(String username, Channel channel);

    void unbind(Channel channel);

    void setAttribute(Channel channel, Object key, Object value);

    Object getAttribute(Channel channel, Object key);

    Channel getChannel(String username);

    String getUsername(Channel channel);
}
